<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="zh_parsen/fzr_name" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>"/>
<input type="hidden" name="zh_parsen/fzr_mobile" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>"/>
<input type="hidden" name="zh_parsen/fzr_tel" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>"/>
<input type="hidden" name="zh_parsen/fzr_email" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>"/>
<div class="t_bar">项目基本情况</div>
	<table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
	<col style="width: 30%"/>
	<col style="width: 25%"/>
	<col style="width: 20%"/>
	<col style="width: 25%"/>	    
		<tr>
			<td align="right"><span class="color_red">*</span>项目名称：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/zh_title' id='zh_title' maxlength="100" style="width: 86.4%" class="input_css required maxlength:100" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称" />
	        </td>
		</tr>
		
		<tr>
	        <td align="right"><span class="color_red">*</span>归口管理部门：</td>
	        <td>
	        	<c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
				<cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang required" readonly="true" value="${recomend_org}"  label="归口管理部门"
	         			id="recomend_org" onlyChooseLeaf="false"  showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValue2" />
				<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />">
				<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
 			</td>
 			<td align="right"><span class="color_red">*</span>申报日期：</td>
			<td><c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
				<cpt:date id="apply_date_curr"  name="proposal/submit_date" value="${submit_date}" className="required date"  label="申报日期" ></cpt:date>
			</td>
	    </tr>
	    <tr>
	        <td align="right"><span class="color_red">*</span>单位名称（全称）：</td>
	        <td colspan="3"> 
	        	<input type='text' name='proposal/njorg_name' id='unit_name' maxlength="100" style="width: 86.4%" class="input_css required maxlength:100" value='<x:out select="$xmlData/data/proposal/njorg_name"/>' label="单位名称(全称)" />
	        </td>
	    </tr>
	   
	    <%--<tr>
	        <td align="right"><span class="color_red">*</span>法定代表人姓名：</td>
	        <td>
	        	<input type='text' name='proposal/contact_person_name' id='contact_person_name' maxlength="50" style="width: 62%" class="input_css required maxlength:50" value='<x:out select="$xmlData/data/proposal/contact_person_name"/>' label="法定代表人姓名" />
	        </td>
	        <td align="right"><span class="color_red">*</span>法定代表人联系电话：</td>
	        <td>
	        	<input type='text' name='proposal/contact_person_tel' id='contact_person_tel' maxlength="20" style="width: 62%" class="input_css required maxlength:20" value='<x:out select="$xmlData/data/proposal/contact_person_tel"/>' label="法定代表人联系电话" />
	        </td>
	   </tr>--%>
		<tr>
			<td align="right">法定代表人姓名：</td>
			<td>
				<span name="proposal/organization_persons/cname"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname" /></span>
			</td>
			<td align="right">法定代表人联系电话：</td>
			<td>
				<span name="proposal/organization_persons/tel"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel" /></span>
			</td>
		</tr>
		<tr>
			<td align="right">基地负责人姓名：</td>
			<td><x:out select="$xmlData/data/zh_persons/zh_person [@submit_psn='1']/basic_info/zh_name" /></td>
			<td align="right">负责人联系电话：</td>
			<td><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/></td>
		</tr>
		<tr>
			<td align="right">电子邮箱：</td>
			<td><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/></td>
			<td align="right">手机号码：</td>
			<td><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/></td>
		</tr>
	  <%-- <tr>
	        <td align="right"><span class="color_red">*</span>基地负责人姓名：</td>
	        <td>
	        	<input type='text' name='proposal/org_controller_name' id='org_controller_name' maxlength="50" style="width: 62%" class="input_css required maxlength:50" value='<x:out select="$xmlData/data/proposal/org_controller_name"/>' label="基地负责人姓名" />
	        </td>
	        <td align="right"><span class="color_red">*</span>负责人联系电话：</td>
	        <td>
	        	<input type='text' name='proposal/org_controller_tel' id='org_controller_tel' maxlength="20" style="width: 62%" class="input_css required maxlength:20" value='<x:out select="$xmlData/data/proposal/org_controller_tel"/>' label="负责人联系电话" />
	        </td>
	    </tr>--%>
	    
	    <tr>
	        <td align="right"><span class="color_red">*</span>单位类型：</td>
	        <td colspan="3">
	        	<c:set var="org_type"><x:out select="$xmlData/data/proposal/org_type" /></c:set>
				<cpt:checkbox key="njtg_org_type" name="proposal/org_type"  tagType="radio" value="${org_type }" width="70px;" repeatColumn="2"  style="border: 0px; padding: 0px; margin: 0px;float:left;"  ></cpt:checkbox>
				<input type="hidden" id="org_type" name="proposal/org_type_value"  class="required"  value="<x:out select="$xmlData/data/proposal/org_type_value" />" label="单位类型">
				<input type="hidden" name="proposal/org_type_name" value="<x:out select="$xmlData/data/proposal/org_type_name" />">
	        </td>
	    </tr>
	    
	    <tr>
	        <td align="right"><span class="color_red">*</span>综合实验站和农技推广示范基地全称：</td>
	        <td>
	        	<input type='text' name='proposal/zhsyz_name' id='zhsyz_name'  maxlength="100" style="width: 62%" class="input_css required maxlength:100" value='<x:out select="$xmlData/data/proposal/zhsyz_name"/>' label="综合实验站和农技推广示范基地全称" />
	        </td>
	        <td align="right"><span class="color_red">*</span>建设开始时间：</td>
	        <td>
	        	<c:set var="build_date" scope="page"><x:out select="$xmlData/data/proposal/built_date" /></c:set>
				<cpt:date id="build_date" name="proposal/built_date" value="${build_date}" size="20" className="required date beforeToday" label="建设开始时间"></cpt:date>
	        </td>
	    </tr>
	    
	    <tr>
	        <td align="right"><span class="color_red">*</span>基地所属县（市）：</td>
	        <td>
	        	<input type='text' name='proposal/orgshi' id='orgshi' style="width: 62%" maxlength="100" class="input_css required maxlength:100" value='<x:out select="$xmlData/data/proposal/orgshi"/>' label="基地所属县（市）" />
	        </td>
	        <td align="right"><span class="color_red">*</span>项目申请金额（万元）：</td>
	        <td>
	        	<input type='text' name='proposal/request_amt' id='request_amt' style="width: 62%; text-align: right;" onfocus="InitInput.setNumber(this,9,2,2)" maxlength="20" class="input_css required maxlength:20" value='<x:out select="$xmlData/data/proposal/request_amt"/>' label="项目申请金额" />
	        </td>
	    </tr>

		 <tr >
	    	<%--<td align="right"><span class="color_red">*</span>项目报审级次：<br/>（省补助资金拨付所属财政局）</td>
	        <td>
				<c:set var="sub_step">{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
	          	<cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang  " readonly="true" value="${sub_step}"  label="项目报审级次" 
	          		id="sub_step" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
		        <input id="sub_step_value" type="hidden" name="proposal/sub_step_value" class="required" label="项目报审级次" value="<x:out select="$xmlData/data/proposal/sub_step_value" />"/>
	            <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"  value="<x:out select="$xmlData/data/proposal/sub_step_name" />"/>
			</td>--%>
			<td align="right"><span class="color_red">*</span>建设地点：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/built_position' id='built_position' maxlength="100" style="width: 86.4%" class="input_css required maxlength:100" value='<x:out select="$xmlData/data/proposal/built_position"/>' label="建设地点" />
	        </td>
	    </tr>

	    <%-- <tr>
	        <td align="right"><span class="color_red">*</span>建设地点及规模，土地流转情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea id='build_scale' rows="6" name='proposal/build_scale' style="width: 90%" class="input_textarea required maxlength:1000" label="建设地点及规模，土地流转情况"><x:out select="$xmlData/data/proposal/build_scale"/></textarea>
	            <input type='hidden' name='proposal/build_scale_hidden'  id='proposal/build_scale_hidden' value=''>
	        </td>
	    </tr>

	    <tr>
	        <td align="right"><span class="color_red">*</span>专家及团队组建情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/erpert_team' id="erpert_team" style="width: 90%" class="input_textarea required maxlength:1000" label="专家及团队组建情况"><x:out select="$xmlData/data/proposal/erpert_team"/></textarea>
	        	<input type='hidden' name='proposal/erpert_team_hidden'  id='proposal/erpert_team_hidden' value=''>
	        </td>
	    </tr>
		

	    <tr>
	        <td align="right"><span class="color_red">*</span>服务地方产业发展情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/fwdfcyfzqk' id='fwdfcyfzqk' style="width: 90%" class="input_textarea required maxlength:1000" label="服务地方产业发展情况"><x:out select="$xmlData/data/proposal/fwdfcyfzqk"/></textarea>
	        	<input type='hidden' name='proposal/fwdfcyfzqk_hidden'  id='proposal/fwdfcyfzqk_hidden' value=''>
	        </td>
	    </tr>
		

	    <tr>
	        <td align="right"><span class="color_red">*</span>培育新型经营主体及创新创业情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/pyxxjyzt' id='pyxxjyzt' style="width: 90%" class="input_textarea required maxlength:1000" label="培育新型经营主体及创新创业情况"><x:out select="$xmlData/data/proposal/pyxxjyzt"/></textarea>
	        	<input type='hidden' name='proposal/pyxxjyzt_hidden'  id='proposal/pyxxjyzt_hidden' value=''>
	        </td>
	    </tr>
		

	    <tr>
	        <td align="right"><span class="color_red">*</span>农民培训情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/farmer_trainning' id='farmer_trainning' style="width: 90%" class="input_textarea required maxlength:1000" label="农民培训情况"><x:out select="$xmlData/data/proposal/farmer_trainning"/></textarea>
	        	<input type='hidden' name='proposal/farmer_trainning_hidden'  id='proposal/farmer_trainning_hidden' value=''>
	        </td>
	    </tr>
		

	    <tr>
	        <td align="right"><span class="color_red">*</span>重点技术成果推广情况：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/important_tech' id='important_tech' style="width: 90%" class="input_textarea required maxlength:1000" label="重点技术成果推广情况"><x:out select="$xmlData/data/proposal/important_tech"/></textarea>
	        	<input type='hidden' name='proposal/important_tech_hidden'  id='proposal/important_tech_hidden' value=''>
	        </td>
	    </tr>

	    <tr>
	        <td align="right"><span class="color_red">*</span>与县（市）共建共享的投入、支撑保障条件：<br/>(限1000字)</td>
	        <td colspan="3">
	        	<textarea rows="6" name='proposal/yxsgjgxtrzc' id='yxsgjgxtrzc' style="width: 90%" class="input_textarea required maxlength:1000" label="与县（市）共建共享的投入、支撑保障条件"><x:out select="$xmlData/data/proposal/yxsgjgxtrzc"/></textarea>
	        	<input type='hidden' name='proposal/yxsgjgxtrzc_hidden'  id='proposal/yxsgjgxtrzc_hidden' value=''>
	        </td>
	    </tr> --%>

	</table>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
 }
</script>	